import yaml

# 打开YAML文件
with open('./settings.yaml', 'r') as file:
    # 使用yaml.safe_load加载YAML文件的内容
    data = yaml.safe_load(file)

# 输出YAML文件的内容
print(type(data), data)


import configparser
config = configparser.ConfigParser()
config.read('./settings.ini')
print(config.sections())
print(config.options('server'))
print(config.options('interface'))
value = config.get('server','host')
print(type(value),value)





